SDAC

TMSConnection Members

TMSConnection class overview.

Properties

Name Description

Authentication

Used to specify the authentication service used by the database server to identify a user.

ClientVersion (inherited from TCustomMSConnection)

Contains the version of Microsoft OLE DB Provider for SQL Server.

ConnectDialog (inherited from TCustomDAConnection)

Allows to link a TCustomConnectDialog component.

ConnectionTimeout

Used to specify the amount of time before an attempt to make a connection is considered unsuccessful.

ConnectString (inherited from TCustomDAConnection)

Used to specify the connection information, such as: UserName, Password, Server, etc.

ConvertEOL (inherited from TCustomDAConnection)

Allows customizing line breaks in string fields and parameters.

Database (inherited from TCustomMSConnection)

Used to specify the database name that is a default source of data for SQL queries once a connection is established.

InTransaction (inherited from TCustomDAConnection)

Indicates whether the transaction is active.

IsolationLevel (inherited from TCustomMSConnection)

Used to specify the extent to which all outside transactions interfere with subsequent transactions of the current connection.

LoginPrompt (inherited from TCustomDAConnection)

Specifies whether a login dialog appears immediately before opening a new connection.

Options

Used to specify the behaviour of a TMSConnection object.

Password (inherited from TCustomDAConnection)

Serves to supply a password for login.

Pooling (inherited from TCustomDAConnection)

Enables or disables using connection pool.

PoolingOptions (inherited from TCustomDAConnection)

Specifies the behaviour of connection pool.

Port

Used to specify the port number for the connection.

Server (inherited from TCustomDAConnection)

Serves to supply the server name for login.

ServerVersion (inherited from TCustomMSConnection)

Contains the exact number of the SQL Server version.

Username (inherited from TCustomDAConnection)

Used to supply a user name for login.

Methods

Name Description

ApplyUpdates (inherited from TCustomDAConnection)

Overloaded. Applies changes in datasets.

AssignConnect (inherited from TCustomMSConnection)

Shares database connection between the TCustomMSConnection components.

ChangePassword

Assignes a new password instead of an expired one..

Commit (inherited from TCustomDAConnection)

Commits current transaction.

Connect (inherited from TCustomDAConnection)

Establishes a connection to the server.

CreateDataSet (inherited from TCustomMSConnection)

Returns a new object of the TCustomMSDataset class and associates it with this connection object.

CreateSQL (inherited from TCustomMSConnection)

Returns a new instance of the TMSSQL class and associates it with this connection object.

Disconnect (inherited from TCustomDAConnection)

Performs disconnect.

ExecProc (inherited from TCustomDAConnection)

Allows to execute stored procedure or function providing its name and parameters.

ExecProcEx (inherited from TCustomDAConnection)

Allows to execute a stored procedure or function.

ExecSQL (inherited from TCustomDAConnection)

Executes a SQL statement with parameters.

ExecSQLEx (inherited from TCustomDAConnection)

Executes any SQL statement outside the TQuery or TSQL components.

GetDatabaseNames (inherited from TCustomDAConnection)

Returns a database list from the server.

GetKeyFieldNames (inherited from TCustomDAConnection)

Provides a list of available key field names.

GetStoredProcNames (inherited from TCustomDAConnection)

Returns a list of stored procedures from the server.

GetTableNames (inherited from TCustomDAConnection)

Provides a list of available tables names.

MonitorMessage (inherited from TCustomDAConnection)

Sends a specified message through the TCustomDASQLMonitor component.

OpenDatasets (inherited from TCustomMSConnection)

Opens several datasets as one batch.

Ping (inherited from TCustomDAConnection)

Used to check state of connection to the server.

RemoveFromPool (inherited from TCustomDAConnection)

Marks the connection that should not be returned to the pool after disconnect.

Rollback (inherited from TCustomDAConnection)

Discards all current data changes and ends transaction.

StartTransaction (inherited from TCustomDAConnection)

Begins a new user transaction.

Events

Name Description

OnConnectionLost (inherited from TCustomDAConnection)

This event occurs when connection was lost.

OnError (inherited from TCustomDAConnection)

This event occurs when an error has arisen in the connection.

OnInfoMessage

Occurs if a SQL Server info message was generated.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback